package pack0711;

import java.io.*;

//演示输出字节字符转换流的使用
public class OutputStreamWriterDemo {
    public static void main(String[] args) throws Exception {
        OutputStream os=new FileOutputStream("a.txt");

        //转换为输出字符流
        Writer w=new OutputStreamWriter(os);

        w.write("僵尸大战");
        w.write("植物大战僵尸");

        w.close();
    }
}
